package Chinese.Education.Identify.controller;

import Chinese.Education.Identify.pojo.StuUser;
import Chinese.Education.Identify.service.StuUserService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@RestController
@RequestMapping("/stuUser")
public class StuUserController {
    @Resource
    private StuUserService stuUserService;
    @RequestMapping("/login")
    public Map<String, Object> login(@RequestBody StuUser user, HttpServletRequest request){
        return stuUserService.login(user,request);
    }
}
